package com.ray.tcc.common.bean.context;

import lombok.Data;

import java.io.Serializable;


/**
 * @author xiaoyu
 */
@Data
public class TccTransactionContext implements Serializable {

    private static final long serialVersionUID = -5289080166922118073L;

    private String transId;

    /**
     * 事务执行动作 {@linkplain com.ray.tcc.common.enums.TccActionEnum}
     */
    private int action;


    /**
     * 事务参与的角色 {@linkplain com.ray.tcc.common.enums.TccRoleEnum}
     */
    private int role;


	public String getTransId() {
		return transId;
	}


	public void setTransId(String transId) {
		this.transId = transId;
	}


	public int getAction() {
		return action;
	}


	public void setAction(int action) {
		this.action = action;
	}


	public int getRole() {
		return role;
	}


	public void setRole(int role) {
		this.role = role;
	}


}
